/*
* Copyright (c) 2014 Qunar.com. All Rights Reserved.
*/
package net.oschina.bilbodai.concurrent.core.converter;

import org.apache.commons.beanutils.ConvertUtils;

/**
 * @author daimao  Date: 15/10/14 Time: 下午2:48
 * @version $Id$
 */
public class NumberRateConverter extends IndexArgRateConverter {

    public NumberRateConverter(int argIndex) {
        super(argIndex);
    }

    @Override
    public int acquire(Object[] args) {
        return (int) ConvertUtils.convert(args[argIndex], int.class);
    }
}